package org.myxdb.client.cmdtoken.command;

public class Help {

	public void execute()
	{
		System.out.println("General Commands:");
		System.out.println();
		System.out.println("info    Show information on current connection.");
		System.out.println("help 	Get help information.");
		System.out.println("quit 	Quit MyXdb.");
		System.out.println();
		System.out.println("Database Commands:");
		System.out.println();
		System.out.println("create database [name]");
		System.out.println("	Create database.");
		System.out.println("delete [name]");
		System.out.println("	Drop existed database.");
		System.out.println("rename database [name] [newname]");
		System.out.println("	Rename existed database.");
		System.out.println("list database");
		System.out.println("	List available database.");
		System.out.println("use [name]");
		System.out.println("	Open available database.");
		System.out.println("close");
		System.out.println("	Close current database.");
		System.out.println("");
		System.out.println("Document Commands:");
		System.out.println("");
		System.out.println("import document [path]");
		System.out.println("	Import XML Document from source path.");
		System.out.println("output document [path]");
		System.out.println("	Output XML Document to target path.");
		System.out.println("delete document [name]");
		System.out.println("	Delete XML Document.");
		System.out.println("list document");
		System.out.println("	List available documents on current database.");
		System.out.println("query [xpath]");
		System.out.println("	Execute Xpath query sentence.");
		System.out.println("delete [node]");
		System.out.println("	Delete target nodes.");
		System.out.println("insert [Element | Text | Attribute][Content]");
		System.out.println("	Insert XML nodes.");
		System.out.println("update [Element | Text | Attribute][Content]");
		System.out.println("	Update XML nodes.");
		System.out.println("");
	}
}
